<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<ul class="cc">
			<li><a href='<yjd:url url="/smscontent/list"/>'>短信记录</a></li>
			<li class="current"><a href='<yjd:url url="/smstemplate/list"/>'>短信模板</a></li>
			<li><a href="<yjd:url url="/market/forwardBatch"/>">批量发送</a></li>
			<li><a href='<yjd:url url="/market/list"/>'>营销短信</a></li>
			<li><a href="<yjd:url url="/market/sms"/>">营销短信任务</a></li>
			<li><a href="<yjd:url url="/market/channelList"/>">短信发送渠道</a></li>
			<li><a href="<yjd:url url="/marketFilter/list"/>">营销短信黑名单</a></li>
			
		</ul>
	</div>
	<div class="mb10">
		<a href='<yjd:url url="/smstemplate/toadd"/>' class="btn"><span class="add"></span>添加短信模板</a>
	</div>
	
	
	
	<c:set var="hashData" value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>0 }" />
	<div class="table_list">
		<table width="100%">
			<thead>
				<tr>
					<td width="50">id</td>
					<td width="150px">模板编码</td>
					<td width="300px">内容</td>
					<td>发送通道</td>
					<td>是否立即发送</td>
					<td>优先级</td>
					<td>允许最大发送失败次数</td>
					<td>描述</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody id="J_word_list">
			<c:forEach items="${pager.pagerModel.dataList }" var="item">
				<tr>
					<td>${item.idSmsTemplate }</td>
					<td>${item.code }</td>
					<td>${item.content }</td>
					<td>${smsChannelMap[item.idSmsChannel].name }</td>
					<td>${item.strMap.is_then_send }</td>
					<td>${item.priority }</td>
					<td>${item.maxFailure }</td>
					<td>${item.description }</td>
					<td>
						<a href='<yjd:url url="/smstemplate/toedit/${item.idSmsTemplate }"/>' class="btn mr10">编辑</a>
						<a href='<yjd:url url="/smstemplate/del/${item.idSmsTemplate }"/>'
						class="btn btn_orange J_ajax_del" data-msg="确定删除该短信模板？"
						id="J_ajax_del_${item.idSmsTemplate }">删除</a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
	</div>
	
	<!-- 分页 -->
	<%@ include file="../../public/pager/pager.pagination.jsp" %>
</div>